<template>
    <div class="layout-header-container">
        <div class="layout-header-left">
            <img src="" alt="" class="layout-header-left-img">
            <h4 class="layout-header-left-title" ml-3>商城后台管理系统</h4>
        </div>
        <div class="layout-header-right">
            <button class="btn btn-light" type="button" @click="onLogout">退出</button>
        </div>
    </div>
</template>
<script setup>
import {useRouter} from 'vue-router'
const router = useRouter()
    const onLogout = () => {
        localStorage.removeItem('token')
        router.push('/login')
    }
</script>
<style scoped>
    
</style>